package com.eclink.asset.asset.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.eclink.asset.domain.dao.CommonEntity;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 资产清单表对象 asset_item
 * 
 * @author chenshixian
 */
@ApiModel(description="耗材对象")
@Data
public class AssetFileVO extends CommonEntity {

    @ApiModelProperty("ID")
    private Integer id;

    @ApiModelProperty("资产编码")
    @Excel(name = "编码")
    private String number;

    @ApiModelProperty("资产名称")
    @Excel(name = "名称")
    private String name;

    @ApiModelProperty("资产分类ID")
    @Excel(name = "分类ID")
    private Integer categoryId;

    @ApiModelProperty("分类名称")
    @Excel(name = "分类名称")
    @TableField(exist = false)
    private String categoryName;

    @ApiModelProperty("品牌")
    @Excel(name = "品牌")
    private String brand;

    @ApiModelProperty("型号")
    @Excel(name = "型号")
    private String model;

    @ApiModelProperty("购置方式")
    @Excel(name = "购置方式")
    private String buyWay;

    @ApiModelProperty("购置时间")
    @Excel(name = "购置时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime buyTime;

    @ApiModelProperty("购置金额")
    @Excel(name = "购置金额")
    private BigDecimal buyPrice;

    @ApiModelProperty("管理员ID")
    private Long adminId;

    @TableField(exist = false)
    @ApiModelProperty("管理员")
    private String adminName;

    @ApiModelProperty("仓库ID")
    private Long warehouseId;

    @TableField(exist = false)
    @ApiModelProperty("仓库名称")
    private Long warehouseName;

    @ApiModelProperty("使用人ID")
    private Long userId;

    @TableField(exist = false)
    @ApiModelProperty("使用人")
    private String userName;

    @ApiModelProperty("图片地址")
    private String imgUrl;

    private Integer state;

    private int delFlag;

}
